<?php
	include 'init.php';

	if ($listid)
	{
		$receiverid = $_GET['receiverid'];

		$con = mysql_connect($DBhost,$DBuser,$DBpass) or die("Unable to connect to database");
		mysql_select_db("$DBName", $con);

		mysql_query("DELETE FROM $TReceivers WHERE ReceiverId='$receiverid'");

		mysql_close($con);

		$to = "/receivers/$listid/$fromphone";
		header('Location: '. $to);
	}
?>